<template>
  <view class="my-container" >
    <!-- 用户未登录显示 -->
    <my-login v-if="!token"></my-login>
    <!-- 用户已登录显示 -->
    <my-userinfo v-else></my-userinfo>
    
  </view>
</template>

<script>
  import badgeMix from '@/mixins/tabbar-badge.js'
  import { mapState} from 'vuex'
  export default {
    mixins: [badgeMix],
    computed: {
      ...mapState('m_user',['token'])
    },
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="scss">
  .my-container {
    height: 100%;
  }

</style>
